﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucMenuServicios.ascx.cs"
    Inherits="wRegPadron.frmOpciones.ucMenuServicios" %>
<table width="100%">
    <tr>
        <td class="tdSubTituloVentana" colspan="2" valign="top" align="left" style="padding-left: 10px;">
            <fieldset>
                <legend>
                    <h3>
                        <asp:Label runat="server" ID="lblTitulo"></asp:Label>
                        <p>
                            <small>
                                <asp:Label runat="server" ID="lblDescripcion"></asp:Label></small></p>
                    </h3>
                </legend>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td>
            <table width="100%">
                <tr>
                    <td align="center">
                        <div class="tabbable">
                            <ul class="nav nav-tabs">
                                <li class="active"><a href="#tab1" data-toggle="tab">Menú</a></li>
                                <li><a href="#tab2" data-toggle="tab">SubMenú</a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane active" id="tab1" style="padding-left: 10px">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <table>
                                                <tr>
                                                    <td align="center">
                                                        <div class="form-horizontal" style="width:500px;">
                                                            <div class="control-group">
                                                                <asp:GridView runat="server" ID="gvMenus" AllowPaging="true" Width="500" AutoGenerateColumns="false"
                                                                    OnRowCommand="gvMenus_RowCommand" CssClass="bgrid">
                                                                    <SelectedRowStyle CssClass="bselectedrow" />
                                                                    <PagerStyle CssClass="bpagerstyle" />
                                                                    <AlternatingRowStyle CssClass="baltrow" />
                                                                    <Columns>
                                                                        <asp:BoundField HeaderText="Menú" DataField="MENU_chNOMMEN" />
                                                                        <asp:ButtonField HeaderText="Editar" ButtonType="Image" CommandName="Editar" 
                                                                        ImageUrl="http://servicios.munijesusmaria.gob.pe/appweb/fuentes/images/edit.png" ControlStyle-Height="25px" ControlStyle-Width="25px"/>
                                                                        <asp:ButtonField HeaderText="Eliminar" ButtonType="Image" CommandName="Eliminar"
                                                                            ImageUrl="http://servicios.munijesusmaria.gob.pe/appweb/fuentes/images/cross.png" ControlStyle-Height="25px" ControlStyle-Width="25px"/>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                        <div class="form-horizontal">
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputEmail">
                                                                    Nombre del menú:
                                                                </label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtNombre"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    Descripción:</label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtDescripcion"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    Orden:</label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtOrden"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <div class="controls">
                                                                    <asp:Label runat="server" ID="lblMensaje" CssClass="text-error"></asp:Label>
                                                                    <asp:Button runat="server" ID="btnGuardar" Text="Guardar" CssClass="btn" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </div>
                                <div class="tab-pane" id="tab2" style="padding-left: 10px">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <table>
                                                <tr>
                                                    <td align="center">
                                                    <div class="form-horizontal">
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputEmail">
                                                                    Menú:
                                                                </label>
                                                                <div class="controls">
                                                                    <asp:DropDownList runat="server" ID="ddlMenu"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    Opción:</label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtOpcion"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    Descripción:</label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtDescripcionOpt"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                             <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    URL:</label>
                                                                <div class="controls">
                                                                    <asp:TextBox runat="server" ID="txtUrl"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <label class="control-label" for="inputPassword">
                                                                    Icono:</label>
                                                                <div class="controls">
                                                                    <asp:FileUpload ID="afuIcono" runat="server" CssClass="btn"/>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <div class="controls">
                                                                    <asp:CheckBox runat="server" ID="cbPrincipal" Text="Opción principal"/>
                                                                </div>
                                                            </div>
                                                            <div class="control-group">
                                                                <div class="controls">
                                                                    <asp:Label runat="server" ID="lblMensajeOpcion" CssClass="text-error"></asp:Label>
                                                                    <asp:Button runat="server" ID="btnGuardarOpcion" Text="Guardar" CssClass="btn" 
                                                                        onclick="btnGuardarOpcion_Click" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
